/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package treenode.visitor;

/**
 *
 * @author Bartek
 */
public class NumericNode implements TreeNode {
    
    private int value;
    
    public NumericNode(int value) {
        this.value = value;
    }
    
    @Override
    public String getLabel() {
        return Integer.toString(value);
    }
    
    public int getValue() {
        return value;
    }
    
    @Override
    public void accept(Visitor v) {
        v.visitNumericNode(this);
    }
}
